//
// File:	GuiPanel.hpp
// Author:	Thomas TISSOT-DUPONT
// E-mail:	<thomas.tissotdupont@free.fr>
// Create:	08/01/2010 00:30:43
// Purpose:	
//
#ifndef GuiPANEL_HPP
#define GuiPANEL_HPP

#include <QtGui/QWidget>
#include <QtGui/QPaintEvent>
#include <QtGui/QResizeEvent>
#include "IGuiPanel.hpp"
#include "GuiElements.hpp"

class GuiPanel : public QWidget, public IGuiPanel
{
	Q_OBJECT

public:
							GuiPanel(QWidget *pParent = NULL);
	virtual					~GuiPanel();

public:
	void					Update();

public:
	bool					SetStyleSheetFromFile(const std::string &filePath);

protected:
	void					paintEvent(QPaintEvent *);
	void					resizeEvent(QResizeEvent *);

protected:
	QSize					m_lastValidSize;
};

#endif //!GuiPANEL_HPP
